<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<title>凯盛项目管理系统</title>
</head>
<body class="body">
	<%@ include file="include/top.jsp"  %>
	
	<div class="container" style="padding-top:60px">
		<div class="row">
			
			<jsp:include page="include/side.jsp">
				<jsp:param value="contact" name="tag"/>
			</jsp:include>
			
			<div class="span9">
				<ul class="breadcrumb" style="margin-bottom:0px">
					<li class="active"><a href="task.html"><i class="icon-user"></i>联系人</a></li>
				</ul>
				
				<div class="wall" style="margin-top:20px">
					<div class="row">
						<div class="span3">
							<a href="contact.jspx?m=add" class="btn span2"><i class="icon-plus"></i>添加联系人</a>
							<div class="clear"></div>
							<ul class="unstyled" style="margin-top:50px">
								<c:forEach items="${contactlist}" var="p">
									<li style="line-height:30px;padding-left:20px">
										<i class="icon-list-alt"></i><a href="contact.jspx?m=show&id=${p.id }">${p.name }</a>
									</li>
								</c:forEach>
							</ul>
						
						</div>
						
						 
						<div class="span4" style="border-left:1px solid #ccc;padding-left:40px">
					
						
						</div>
							
						
					</div>
				</div>
				
			</div>
		</div>
	</div>
</body>
</html>

<!-- 
	<script type="text/javascript">
		var xmlHttp;
    	
    	function createXMlHttpRequest() {
    		if(window.ActiveXObject) {
        		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        	} else {
        		xmlHttp = new XMLHttpRequest();
        	}
    	}
    	
    	document.getElementById(${con.id}).onclick = function() {
    		createXMlHttpRequest();
    		var id=document.getElementById().id;
    			xmlHttp.open("get", "contact.jspx?id="+id, true);
        		xmlHttp.onreadystatechange = callback;
        		xmlHttp.send();
    	
    	};
    	function callback(){
    		if(xmlHttp.readyState==4){
    			if(xmlHttp.status==200){
    				var result = xmlHttp.responseXML;
    				var name=result.getElementsByTagName("name")[0].childNodes[0].nodeVlaue;
    				var company=result.getElementsByTagName("company")[0].childNodes[0].nodeVlaue;
    				var cellphone=result.getElementsByTagName("cellphone")[0].childNodes[0].nodeVlaue;
    				var phone=result.getElementsByTagName("phone")[0].childNodes[0].nodeVlaue;
    				var email=result.getElementsByTagName("email")[0].childNodes[0].nodeVlaue;
    				var address=result.getElementsByTagName("address")[0].childNodes[0].nodeVlaue;
    				var website=result.getElementsByTagName("website")[0].childNodes[0].nodeVlaue;
    				var weibo=result.getElementsByTagName("weibo")[0].childNodes[0].nodeVlaue;
    				
    				document.getElementsByName("name")[0].innerHTML=name;
    				document.getElementsByName("company")[0].innerHTML=company;
    				document.getElementsByName("cellphone")[0].innerHTML=cellphone;
    				document.getElementsByName("phone")[0].innerHTML=phone;
    				document.getElementsByName("email")[0].innerHTML=email;
    				document.getElementsByName("address")[0].innerHTML=address;
    				document.getElementsByName("website")[0].innerHTML=website;
    				document.getElementsByName("weibo")[0].innerHTML=weibo;
    			}else{
    				alert("服务器繁忙");
    			}
    		}else{
    		//loading
    		}
    	}
    	
    
	</script>
	
	 -->
